package thread;

public class Demo9 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            System.out.println("hello");
        });

        Thread t2 = new Thread(() -> {
            System.out.println("hello2");
        });

        t.start();
        t2.start();
        Thread.sleep(1000);
        //t.start();一个线程只能start一次
    }
}
